package com.eva.job;

import com.eva.core.job.BaseDistributer;
import com.eva.core.job.JobParam;
import com.eva.dao.system.model.SystemPermission;
import com.eva.service.system.SystemPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class TestJob2Distributer extends BaseDistributer<SystemPermission> {

    @Autowired
    private SystemPermissionService systemPermissionService;

    @Override
    public List<SystemPermission> getBusinessData(JobParam jobParam) {
        return systemPermissionService.findList(new SystemPermission());
    }
}
